package cn.itsource.itsource.dto;

import lombok.Data;


public class LoginDto {

    public static final Integer USER_TYPE_QIANDUAN = 1;
    public static final Integer USER_TYPE_YUNYING = 2;

    private String username;
    private String password;
    /**
     * 1：门户前端
     * 2：运营前端
     */
    private Integer userType;

    public static Integer getUserTypeQianduan() {
        return USER_TYPE_QIANDUAN;
    }

    public static Integer getUserTypeYunying() {
        return USER_TYPE_YUNYING;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return "LoginDto{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", userType=" + userType +
                '}';
    }
}
